package com.baoai.dto;

import com.baoai.common.ArrayQuery;
import com.baoai.common.IdName;
import org.springframework.stereotype.Repository;

/**
 * 广告
 * Created by xiaren on 2017/4/10.
 */
@Repository("comment")
public class CommentDto extends BaseDto {

    private String className = "comment";
    private String id;
    @IdName
    private String commentId;    // 评论id
    private Long createDate;    // 当前时间的毫秒数
    private Long updateDate;    //修改时间
    private String content;     // 内容
    private String memberId;   //会员ID
    private String parentId;   //上级ID（要评论的那条数据ID）
    private String praiseCount;   //点赞总数
    private String relationId;   //资源id
    private String relationType;   //类型【1.课程，2.导师 3：视频、4问答、5文章】
    private String state;   //审核状态 0.未审核，1.审核通过，2.审核未通过
    private String baseId;   //最初评论的ID
    private String nextId;   //后面回复ID
    private String memberName;   //冗余名称
    private String memberImage;   //冗余用户图片
    @ArrayQuery(lengthName = "tutorIdJson_Count")
    private String tutorIdJson;
    private Integer sourceId;  //资源的id
    private String sourceTitle;    //资源的标题
    private Integer replyCount;     //回复个数
    private String isBase;      // 0表示否，1表示是（根节点）
    private String recommend;  //推荐(0推荐、1不推荐）

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "CommentDto{" +
                "className='" + className + '\'' +
                ", id='" + id + '\'' +
                ", commentId='" + commentId + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", content='" + content + '\'' +
                ", memberId='" + memberId + '\'' +
                ", parentId='" + parentId + '\'' +
                ", praiseCount='" + praiseCount + '\'' +
                ", relationId='" + relationId + '\'' +
                ", relationType='" + relationType + '\'' +
                ", state='" + state + '\'' +
                ", baseId='" + baseId + '\'' +
                ", nextId='" + nextId + '\'' +
                ", memberName='" + memberName + '\'' +
                ", memberImage='" + memberImage + '\'' +
                ", tutorIdJson='" + tutorIdJson + '\'' +
                ", sourceId=" + sourceId +
                ", sourceTitle='" + sourceTitle + '\'' +
                ", replyCount=" + replyCount +
                ", isBase='" + isBase + '\'' +
                ", recommend='" + recommend + '\'' +
                '}' + "\r\n";
    }

    public String getIsBase() {
        return isBase;
    }

    public void setIsBase(String isBase) {
        this.isBase = isBase;
    }

    public String getSourceTitle() {
        return sourceTitle;
    }

    public void setSourceTitle(String sourceTitle) {
        this.sourceTitle = sourceTitle;
    }

    public Integer getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    public String getTutorIdJson() {
        return tutorIdJson;
    }

    public void setTutorIdJson(String tutorIdJson) {
        this.tutorIdJson = tutorIdJson;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(String praiseCount) {
        this.praiseCount = praiseCount;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

    public String getRelationType() {
        return relationType;
    }

    public void setRelationType(String relationType) {
        this.relationType = relationType;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getBaseId() {
        return baseId;
    }

    public void setBaseId(String baseId) {
        this.baseId = baseId;
    }

    public String getNextId() {
        return nextId;
    }

    public void setNextId(String nextId) {
        this.nextId = nextId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberImage() {
        return memberImage;
    }

    public void setMemberImage(String memberImage) {
        this.memberImage = memberImage;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    @Override
    public Long getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    @Override
    public Long getUpdateDate() {
        return updateDate;
    }

    @Override
    public void setUpdateDate(Long updateDate) {
        this.updateDate = updateDate;
    }

}
